<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% extends "learning_logs/base.html" %}
{% block header %}
<h2>{{topic}}</h2>
{% endblock header %}
{% block content %}

  <p>Topic:{{topic}}</p>
  <p>Entries:</p>

  <ul>
    {% for entry in entries %}
      <div class="panel panel-default">
          <div class="panel-heading">
              <h3>
              {{ entry.date_added|date:'M d,Y H:i' }}
              <small>
                  <a href="{% url 'learning_logs:edit_entry' entry.id %}">edit the entry</a>
             </small>
              </h3>
          </div>
          <div class="panel-body">
              {{ entry.text|linebreaks }}
          </div>
	  </div>
    {% empty %}
      No entries for this topic yet.
    {% endfor %}
  </ul>
  <p>
      <a href="{% url 'learning_logs:new_entry' topic.id %}">add new entry</a>
  </p>

{% endblock content %}




</body>
</html>